<%@include file="taglib_includes.jsp" %>
<html>
<head>
<script type="text/javascript"></script>
<title><spring:message code="App.LoginTitle"></spring:message></title>
</head>
<body style="font-family: Arial; font-size:smaller;">
<table  bgcolor="lightblue" width="350" height="250" align="center" style="border-collapse: collapse;" border="1" bordercolor="#006699" >
	<tr>
		<td align="center"><h3>Login</h3></td>
	</tr>
	<tr valign="top" align="center">
		<td align="center">
			<form:form action="loginUser.do" method="post" commandName="login">
				<table width="500" style="border-collapse: collapse;" border="0" bordercolor="#006699" cellspacing="2" cellpadding="2">					
					
					<tr>
						<td width="100" align="right">User Name:</td>
						<td width="150">
						<form:input path="userName"/></td>
						<td align="left">
						<form:errors path="userName" cssStyle="color:red"></form:errors>  </td>
					</tr>
					
					<tr>
						<td width="100" align="right">Password:</td>
						<td width="150">
						<form:password path="password"/></td>
						<td align="left">
						<form:errors path="password" cssStyle="color:red"></form:errors>  </td>
					</tr>
					
					<tr>
						<td colspan="3" align="center">
						<input type="submit" name="" value="Login">
						&nbsp;&nbsp;
						<input type="reset" name="" value="Reset">
						
						</td>
					</tr>
					
		<c:if test="${not empty USER_DETAILS}">
			<c:forEach var="user" items="${USER_DETAILS}">		
		    <tr>
					<c:if test="${user.noOfAttempts<=4 && user.status=='A'}">
					<td width="600" align="left" colspan="4"><H5>This is incorrect attempt number</H5></td>
					<td colspan="1"><c:out value="${user.noOfAttempts}"></c:out></td>					</c:if>
				</tr>
				<c:if test="${user.noOfAttempts>=5}">
				<tr>
				<td width="600" align="left" colspan="4"><h5>Account Locked</h5></td>
				</tr>
				</c:if>
				
				</c:forEach>
				
				</c:if>
				
			
					</table>
					</form:form>
					</td>
					</tr>
					
</table>
</body>
</html><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>